-- GENERATED SPELL FOR [Varlam] --


function spell0_27579(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27579', 661, 1)
end

function spell1_27579(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27579', 5269, 1)
end

function Sorts_27579(pUnit, Event)
local choix_sorts_27579 = math.random(0, 1)
if choix_sorts_27579 == 0 then
pUnit:RegisterEvent('spell0_27579', 1, 1)
end
if choix_sorts_27579 == 1 then
pUnit:RegisterEvent('spell1_27579', 1, 1)
end
end

function mob27579_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27579', math.random(1500, 3000), 1)
end

function mob27579_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27579_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27579_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27579, 1, 'mob27579_Action')
RegisterUnitEvent(27579, 2, 'mob27579_Leave')
RegisterUnitEvent(27579, 3, 'mob27579_Kill')
RegisterUnitEvent(27579, 4, 'mob27579_Die')
